#include "mainwindow.h"
#include <QSplitter>
#include <QTextEdit>

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent), h1Splitter(new QSplitter(this)), h2Splitter(new QSplitter(this))
{
    QSplitter *vSplitter = new QSplitter;
    vSplitter->setOrientation(Qt::Vertical);
    vSplitter->addWidget(h1Splitter);
    vSplitter->addWidget(h2Splitter);

    QTextEdit *textEdit;

    textEdit = new QTextEdit(this);
    h1Splitter->addWidget(textEdit);
    textEdit = new QTextEdit(this);
    h1Splitter->addWidget(textEdit);
    textEdit = new QTextEdit(this);
    h2Splitter->addWidget(textEdit);
    textEdit = new QTextEdit(this);
    h2Splitter->addWidget(textEdit);

    vSplitter->show();
}

MainWindow::~MainWindow()
{
}

